﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using SD.Entities;
using SD.DAL;
using SD.IDAL;
using SD.IBUS;
using System.Data.SqlClient;

namespace SD.BUS
{
    public class OrgProgrammeBIZ : BaseBIZ, IOrgProgrammeBIZ
    {
        IOrgProgrammeDAO orgProgrammeDAO;

         public OrgProgrammeBIZ()
        {
            orgProgrammeDAO = new OrgProgrammeDAO();
        }

        #region IOrgProgrammeBIZ Members

        /// <summary>
        /// 
        /// </summary>
        /// <param name="orgId"></param>
        /// <returns></returns>
        public List<string> GetByOrganization(string orgId)
        {
            try
            {
                return orgProgrammeDAO.GetByOrganization(orgId);
            }
            catch (SqlException ex)
            {
                throw ex;
            }
        }

        public bool Insert(string orgId, string programmeId)
        {
            return false;
        }

        public bool Update(string orgId, List<Programme> detail)
        {
            return false;
        }

        public bool Delete(string orgId, string programmeId)
        {
            return false;
        }

        #endregion
    }
}
